# FFTerm Makefile

CROSS_COMPILE=~/gcc-3.3.5-glibc-2.3.2/arm-linux/bin/arm-linux-
INCLUDE=
CC=$(CROSS_COMPILE)gcc -g -Wall $(INCLUDE)
AR=ar

ffterm.a: ffterm.o ffterm-platform.o ffterm-commands.o ffterm-error.o
	$(AR) rvs ffterm.a ffterm.o ffterm-platform.o ffterm-commands.o ffterm-error.o

ffterm.o: ffterm.c ffterm.h
	$(CC) -c ffterm.c -o ffterm.o

ffterm-platform.o: ../drivers/linux/ffterm-platform.c ffterm-platform.h
	$(CC) -c ../drivers/linux/ffterm-platform.c -o ffterm-platform.o

ffterm-commands.o: ffterm-commands.c ffterm-commands.h
	$(CC) -c ffterm-commands.c -o ffterm-commands.o

ffterm-error.o: ffterm-error.c ffterm-error.h
	$(CC) -c ffterm-error.c -o ffterm-error.o

clean:
	rm *.o *.a